#ifndef FIELDVIEW_H
#define FIELDVIEW_H

#include <QTreeView>
#include "qevent.h"

class FieldView : public QTreeView
{
    Q_OBJECT
public:
    FieldView(QWidget *parent = nullptr);

protected:
    void mousePressEvent(QMouseEvent *event);

signals:
    void nodePressed(const QModelIndex &index);
};

#endif // FIELDVIEW_H
